#include "frame.h"

MyFrame::MyFrame(const wxString & title)
    : wxFrame(NULL, wxID_ANY, title, wxDefaultPosition, wxSize(250, 130))
{
    _tmr = new wxTimer(this, ID_TIMER);    Connect(ID_TIMER,wxEVT_TIMER,(wxObjectEventFunction)&MyFrame::OnTimer);
    //_tmr->Bind(wxEVT_TIMER, wxTimerEventHandler(MyFrame::OnTimer), this);
    _tmr->Start(1000);
    Centre();
}

void MyFrame::OnTimer(wxTimerEvent &event){
    wxLogMessage(_T("This is a test."));
}
//BEGIN_EVENT_TABLE(MyFrame, wxFrame)//	EVT_TIMER(ID_TIMER, MyFrame::OnTimer)//END_EVENT_TABLE()